home *** CD-ROM | disk | FTP | other *** search
Wrap
ASP.NET Web Form | 2002-03-18 | 2.2 KB | 40 lines
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ResponseForm.aspx.vb" Inherits="AspnetApplications.ResponseForm" trace="False"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>ResponseForm</title> <meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR"> <meta content="Visual Basic 7.0" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> </HEAD> <body> <form id="Form1" method="post" runat="server"> <H1>Response object demo</H1> <P>This page demonstrates several new features of the Response object, such as: the WriteFile method, the ability to send binary output to the OutputStream property, cookie creation and enumeration, the Filter property to create outout filters, the Session and the Application collections.</P> <P> </P> <P><asp:hyperlink id="HyperLink1" runat="server" NavigateUrl="ResponseForm.aspx?doctitle=sampledoc">Click here to display a file</asp:hyperlink></P> <P><asp:linkbutton id="btnImage" runat="server">Click here to display an image</asp:linkbutton> <asp:textbox id="txtImageTitle" runat="server">Sample Text</asp:textbox></P> <P><asp:image id="Image1" runat="server"></asp:image></P> <P><asp:linkbutton id="btnCookie" runat="server">Create a cookie</asp:linkbutton> Name <asp:textbox id="txtCookieName" runat="server" Width="122px"></asp:textbox> Value <asp:textbox id="txtCookieValue" runat="server"></asp:textbox></P> <P><STRONG>Current cookies:</STRONG></P> <P><asp:literal id="litCookieValues" runat="server"></asp:literal></P> <P><asp:checkbox id="chkConvert" runat="server" Text="Activate a filter that converts <b> into <strong>" AutoPostBack="True"></asp:checkbox></P> <P><STRONG>Session information:</STRONG></P> <P><asp:literal id="litSessionInfo" runat="server"></asp:literal></P> <P> </P> <P><STRONG>Application information</STRONG></P> <P><asp:literal id="litApplicationInfo" runat="server"></asp:literal></P> <P> </P> </form> </body> </HTML>